package test;

public class Gugudan {
	private int dan=0;
	private int su1=0;
	private int su2=0;
	private int su3=0;
	
	public int getDan() {
		return dan;
	}

	public void setDan(int dan) {
		this.dan = dan;
	}
	
	
	public int getSu1() {
		return su1;
	}

	public void setSu1(int su1) {
		this.su1 = su1;
	}

	public int getSu2() {
		return su2;
	}

	public void setSu2(int su2) {
		this.su2 = su2;
	}

	public int getSu3() {
		return su3;
	}

	public void setSu3(int su3) {
		this.su3 = su3;
	}

	public String output1(){
		String str="<b>"+getDan()+"단 </b><br><br>";
		
		for(int a=1;a<10;a++){
			str += getDan()+" x "+a+" = "+getDan()*a+"<br>"; 
		}
				
		return str;
	}
	public String output2(){
		String str="";
		int temp;
		int s1 =getSu1();
		int s2 =getSu2();
		
		if(s1>s2){
			temp=s1;
			s1=s2;
			s2=temp;		
		}
		
		
		for(int a=s1;a<=s2;a++){
			if(a%getSu3()==0){
				str+= a+" ";
			}
				
		}
				
		return str;
	}
	
}
